package cn.cs.mapper;
import cn.cs.pojo.InvoiceTitle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InvoiceTitleMapper {

	public InvoiceTitle getInvoiceTitleById(@Param(value = "id") Long id)throws Exception;

	public InvoiceTitle	getInvoiceTitleByName(@Param(value = "name") String name, @Param(value = "userId") String userId)throws Exception;

	public List<InvoiceTitle> getInvoiceTitleListByUserId(@Param(value = "userId") String userId)throws Exception;

	public Integer insertInvoiceTitle(InvoiceTitle invoiceTitle)throws Exception;

	public Integer updateInvoiceTitle(InvoiceTitle invoiceTitle)throws Exception;

	public Integer deleteInvoiceTitleById(@Param(value = "id") Long id)throws Exception;

	public Integer setDefault(@Param(value = "id") Long id)throws Exception;

	public Integer setDefaultAll(@Param(value = "userId") String userId)throws Exception;

	public InvoiceTitle getDefaultByUserId(@Param(value = "userId") String userId)throws Exception;



}
